package com.paas.form.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.paas.common.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("form_view")
@ApiModel(value = "FormView对象", description = "")
public class FormViewEntity extends BaseModel {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId
    private String id;

    @ApiModelProperty(value = "编码")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "分组ID")
    @TableField("group_id")
    private String groupId;

    @ApiModelProperty(value = "表")
    @TableField("link_table")
    private String linkTable;

    @ApiModelProperty(value = "类型")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "数据状态")
    @TableField("status")
    private String status;

    @ApiModelProperty(value = "描述")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "修改人id")
    @TableField("modify_id")
    private String modifyId;

    @ApiModelProperty(value = "所属视图id")
    @TableField("view_id")
    private String viewId;

    @ApiModelProperty(value = "父Id")
    @TableField("parent_id")
    private String parentId;

    @ApiModelProperty(value = "数据源")
    @TableField("datasource")
    private String datasource;

    @ApiModelProperty(value = "ID字段")
    @TableField("id_field")
    private String idField;

    @ApiModelProperty(value = "父ID字段")
    @TableField("parent_field")
    private String parentField;

    @ApiModelProperty(value = "显示字段")
    @TableField("view_field")
    private String viewField;


    @ApiModelProperty(value = "状态字段")
    @TableField("status_field")
    private String statusField;

    @ApiModelProperty(value = "外键映射")
    @TableField("foreign_key_mapping")
    private String foreignKeyMapping;

    @ApiModelProperty(value = "业务状态 10暂存 20 审批中 30 发布成功 ")
    @TableField("biz_status")
    private String bizStatus;

    @ApiModelProperty(value = "用于查询parentId为空的")
    @TableField(exist = false)
    private String rootParentId;

    @ApiModelProperty(value = "用于分发的容器字段")
    @TableField("container_field")
    private String containerField;

    @ApiModelProperty(value = "分组名称")
    @TableField(exist = false)
    private String groupName;
}